-- 一键出入箱
function XS_IntoOutChest()
    local player = GetPlayer()
    if player.components.inventory then
        for container_inst, status in pairs(player.components.inventory.opencontainers) do
            local is_equip_pack = false
            for _, equip in pairs(player.components.inventory.equipslots) do
                if equip and equip.components.container and equip.components.container.type == "pack" then
                    if equip == container_inst then
                        is_equip_pack = true
                        break
                    end
                end
            end
            if not is_equip_pack and status then
                local current_say, pass1, pass2 = "", false, false
                -- 物品入箱
                local into_res = XS:SelfStuffsIntoChest(container_inst)
                if into_res.status then
                    pass1 = true
                    current_say = current_say .. " " .. into_res.say
                end
            end
        end
    end
end
